#include "GDAL/gdal_priv.h"

int main(int argc, char* argv[])
{
    GDALDataset  *poDataset;
    char* pszFilename = "./01.jpg";
    if (argc > 1) {
		pszFilename = argv[1];	
    }
    GDALAllRegister();
   
    poDataset = (GDALDataset *) GDALOpen( pszFilename, GA_ReadOnly );
    if( poDataset == NULL )
    {
        printf("NULL\n");
    }
    else {
        printf("OK\n");
    }
}
